package com.halflife.message;

import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/4/3 0003.
 */
@Repository
public interface OrderMessageRepository {

    /**
     *  新增订单通知
     * @param message
     * @return
     */
    int insert(OrderMessage message);

    /**
     * 查询用户通知
     * @param param
     * @return
     */
    List<OrderMessage> selectOrderMessages(Map<String, Object> param);

    int updateByPrimaryKey(OrderMessage message);
}
